class Solution {
    public int[] twoSum(int[] nums, int target) {
        return new int[]{1,2};
    }

    public static void main(String[] args) {
        Solution solution = new Solution();
        // case 1
        int[] ints = solution.twoSum(new int[]{2, 7, 11, 15}, 9);
        if ( ints[0] == 0 && ints[1] == 1) {
            System.out.println("Test pass");
        } else {
            System.out.println("Test failed");
        }
        // case 2
        ints = solution.twoSum(new int[]{3, 2, 4}, 6);
        if ( ints[0] == 1 && ints[1] == 2) {
            System.out.println("Test pass");
        } else {
            System.out.println("Test failed");
        }
        // case 3
        ints = solution.twoSum(new int[]{3, 3}, 6);
        if ( ints[0] == 0 && ints[1] == 1) {
            System.out.println("Test pass");
        } else {
            System.out.println("Test failed");
        }
    }}